﻿

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="~/Content/Css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="~/Content/Css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="~/Content/Css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="~/Content/Css/animate.css" rel="stylesheet">
    <link href="~/Content/Css/style.css?v=4.1.0" rel="stylesheet">
    <link href="~/Content/Css/plugins/multiselect/bootstrap-multiselect.css" rel="stylesheet" />
    <link href="~/Content/Css/plugins/iCheck/custom.css" rel="stylesheet">
    <style>
        .ibox {
            margin-bottom: 0px;
        }

        .ibox-content {
            padding: 15px 20px 0px 20px;
        }

        .multiselect-container input[type="checkbox"] {
            margin-top: 7px;
        }

        .inp {
            width: 177px;
            padding: 2px 4px;
            display: inline;
        }

        .lab {
            margin-bottom: 5px;
            font-weight: 700;
            cursor: default;
            width: 60px;
            text-align: center;
        }

        .sel {
            width: 100px;
            padding: 1px 4px;
            display: inline;
            font-size: 12px;
        }

        .sel-min {
            width: 82.5px;
            padding: 1px 4px;
            display: inline;
            font-size: 12px;
        }

        .mybtn-group {
            margin-top: -4px;
        }

        .displayNone {
            display: none;
        }

        /*.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 ,
        .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
        .btn-group,#commissionBtn,#clone {
            border-style: solid;
            border-width: 1px;
            border-color: #000;
        }*/

        .col-xs-2 {
            padding-left: 0px;
            padding-right: 0px;
            text-align: right;
        }

        .form-group {
            margin-bottom: 0px;
        }

        .col-xs-10 {
            padding-left: 0px;
            padding-right: 0px;
        }

        .DivCls {
            padding-left: 0px;
            padding-right: 0px;
        }

        .SelectCls, .InputCls, .LabelCls {
            padding-left: 0px;
            padding-right: 0px;
            text-align: right;
        }
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight" style="padding:10px;">
        <div class="ibox float-e-margins">
            <div class="panel panel-default" style="margin-top:10px;margin-bottom:10px;">
                <div class="panel-heading">
                    <strong>新房管理</strong>
                </div>

                <div class="panel-body">

                    <div class="col-sm-12 DivCls">
                        <div class="col-sm-12 DivCls">
                            <form id="mainForm">

                                <div class="form-group col-sm-3 DivCls">
                                    <label class="col-xs-3 control-label LabelCls" style="float:left; margin-top:8px;">搜索类别：</label>
                                    <div class="col-xs-4 SelectCls">
                                        <select class="form-control" name="typeId" id="typeId">
                                            <option value="0">全部</option>
                                            <option value="1">客户姓名</option>
                                            <option value="2">客户电话</option>
                                            <option value="3">楼盘名称</option>
                                            <option value="4">经纪人姓名</option>
                                            <option value="5">门店名称</option>
                                            <option value="6">地推姓名</option>
                                            <option value="7">业务姓名</option>
                                            <option value="8">流水号</option>
                                        </select>
                                    </div>
                                    <div class="col-xs-5 InputCls">
                                        <input type="text" class="form-control" id="typevalue" name="typevalue">
                                    </div>
                                </div>

                                <div class="form-group col-sm-2 DivCls">
                                    <label class="col-xs-3 control-label LabelCls" style="float:left; margin-top:8px;">状态：</label>
                                    <div class="col-xs-9 SelectCls">
                                        <select class="form-control" name="stateid" id="stateid">
                                            <option value="0">全部</option>
                                            @{
                                                switch (Convert.ToInt32(ViewData["state"]))
                                                {
                                                    case 1://报备审批
                                                        <option value="1">报备审核中</option>
                                                        break;
                                                    case 2://带看确认
                                                        <option value="2">报备通过</option>
                                                        break;
                                                    case 4://订金确认
                                                        <option value="4">已带看</option>
                                                        break;
                                                    case 5://首付款确认
                                                        <option value="5">已交订金</option>
                                                        break;
                                                    case 6://成交确认
                                                        <option value="6">已交首付款</option>
                                                        break;
                                                    case 3://失败完成
                                                    case 10:
                                                        <option value="3">报备驳回</option>
                                                        <option value="10">已退房</option>
                                                        break;
                                                    case 7://成功完成
                                                    case 8:
                                                        <option value="7">已备案</option>
                                                        <option value="8">已完成</option>
                                                        break;
                                                    case 9://退房审核
                                                        <option value="9">申请退房</option>
                                                        break;
                                                    default:
                                                        break;
                                                }
                                            }
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group col-sm-2 DivCls">
                                    <label class="col-xs-3 control-label LabelCls" style="float:left; margin-top:8px;">楼盘：</label>
                                    <div class="col-xs-9 InputCls">
                                        <input type="text" class="form-control" id="buildName" name="buildName" onclick="GoToLayer();">
                                        <input type="hidden" class="form-control" id="buildID" name="buildID" value="0">
                                    </div>
                                </div>

                                <div class="col-sm-3 DivCls">
                                    <div class="form-group col-sm-6 DivCls">
                                        <label class="col-xs-6 control-label LabelCls" style="float:left; margin-top:8px;">开始时间：</label>
                                        <div class="col-xs-6 InputCls">
                                            <input type="text" class="form-control" style="width:99px;" id="beginDate" name="beginDate" readonly="readonly" value="@DateTime.Now.AddMonths(-3).ToString("yyyy-MM-dd")">
                                        </div>
                                    </div>
                                    <div class="form-group col-sm-6 DivCls">
                                        <label class="col-xs-6 control-label LabelCls" style="float:left; margin-top:8px;">结束时间：</label>
                                        <div class="col-xs-6 InputCls">
                                            <input type="text" class="form-control" style="width:99px;" id="endDate" name="endDate" readonly="readonly" value="@DateTime.Now.ToString("yyyy-MM-dd")">
                                        </div>
                                    </div>
                                </div>

                                <div class="col-sm-2 DivCls">
                                    <div class="col-sm-12 DivCls" style="padding-top:5px;">
                                        <button class="btn btn-white btn-xs" type="submit">查询</button>
                                        <button class="btn btn-primary btn-xs" type="reset" onclick="$('#buildID').val(0);" id="setBtn">清空</button>

                                        <button class="btn btn-primary btn-xs" type="button" id="dateSel01">近3天</button>
                                        <button class="btn btn-primary btn-xs" type="button" id="dateSel02">近7天</button>
                                        <button class="btn btn-primary btn-xs" type="button" id="dateSel03">本月</button>
                                        <button class="btn btn-primary btn-xs" type="button" id="dateSel04">上个月</button>
                                    </div>
                                </div>

                            </form>
                        </div>

                    </div>

                </div>
            </div>


            <div class="ibox-content" style="padding:15px;">
                <div class="col-sm-2">
                    <div class="btn-group">

                    </div>
                </div>
                <table id="table" data-mobile-responsive="true"></table>
            </div>


        </div>
    </div>





    <!-- 全局js -->
    <script type="text/javascript" src="~/Scripts/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="~/Scripts/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script type="text/javascript" src="~/Scripts/content.js?v=1.0.0"></script>

    <!-- Bootstrap table -->
    <script type="text/javascript" src="~/Scripts/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="~/Scripts/plugins/bootstrap-table/extensions/export/bootstrap-table-export.js"></script>
    <script src="~/Scripts/plugins/bootstrap-table/extensions/export/tableExport.jquery.plugin-master/tableExport.js"></script>
    <script type="text/javascript" src="~/Scripts/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

    <script type="text/javascript" src="~/Scripts/common.js"></script>

    <!-- layer javascript -->
    <script type="text/javascript" src="~/Scripts/plugins/layer/layer.min.js"></script>
    
    <!-- 时间格式 -->
    <script src="~/Scripts/plugins/layer/laydate/laydate.js"></script>
    <script src="~/Scripts/TimeObjectUtil.js"></script>

    <!-- 多选脚本 -->
    <script src="~/Scripts/plugins/multiselect/bootstrap-multiselect.js"></script>

    <!-- 查看权限 -->
    <script src="~/Scripts/loginmodel.js"></script>

    <script>
        var state = parseInt('@ViewData["state"]');
    </script>

    <script src="~/Areas/Runnings/Scripts/RunningsIndex.js?a=@(DateTime.Now.Ticks)"></script>
</body>

</html>
